std::basic_string::swap
From Cppreference
< cpp | string | basic string
| void swap( basic_string& other );
| ||
Exchanges the contents of the string with those of other. All iterators and references remain valid.
Contents |
Parameters
| other | - | string to exchange the contents with |
Return value
(none)
Example
| This section is incomplete |
Complexity
constant